#define _CRT_SECURE_NO_WARNINGS 1
#include"DList.h"
int main()
{
	DL* head = DLinit();
	
	DLpushback(head, 1);
	DLpushback(head, 2);
	DLpushback(head, 1);
	DLpushback(head, 6);
	DLpushback(head, 6);
	DLpushback(head, 3);
	DLprint(head);
	DLpopback(head);
	DLpopback(head);
	DLprint(head);
	DLpushfront(head, 3);
	DLprint(head);
	DLpopfront(head);
	DLprint(head);
	DL* tem = DLfind(head, 1);
	if (tem)
	{
		DLerase(head, tem);
	}
	DLprint(head);

	DL* tem1 = DLfind(head, 2);
	if (tem)
	{
		DLInsert(head,tem1, 3);
	}
	DLprint(head);

	return 0;
}